from distutils.core import setup, Extension
import glob

deps = glob.glob('src/*.c')

extensions = [Extension("_nnint",deps,include_dirs = ['src'],)]
packages          = ['griddata']
package_dirs       = {'':'lib'}
setup(
  name              = "griddata",
  version           = "1.0",
  description       = "Interpolate irregularly spaced data to a grid",
  long_description  = """
  Interpolates irregularly spaced data to a regular grid using natural
  neighbor interpolation.  Based on the natgrid library
  (http://ngwww.ucar.edu/ngdoc/ng/ngmath/natgrid/nnhome.html).""",
  url               = "http://code.google.com/p/griddata-python",
  download_url      = "http://code.google.com/p/griddata-python/downloads/list",
  author            = "Jeff Whitaker",
  author_email      = "jeffrey.s.whitaker@noaa.gov",
  platforms         = ["any"],
  license           = "OSI Approved :: University of Illinois/NCSA Open Source License",
  keywords          = ["python","interpolation"],
  classifiers       = ["Development Status :: 4 - Beta",
			           "Intended Audience :: Science/Research", 
			           "License :: OSI Approved", 
			           "Topic :: Scientific/Engineering :: Visualization",
			           "Topic :: Software Development :: Libraries :: Python Modules",
			           "Operating System :: OS Independent"],
  packages          = packages,
  package_dir       = package_dirs,
  ext_modules       = extensions)
